﻿<UserControl x:Class="UploadingControl.NewsDetailPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" ScrollViewer.HorizontalScrollBarVisibility="Visible"
    mc:Ignorable="d" 
     d:DesignWidth="450" xmlns:my="clr-namespace:UploadingControl" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls">
    <UserControl.Resources>
        <DataTemplate x:Key="CompetencyLevelTemplate">
            <HyperlinkButton Content="{Binding Path=Description}" Tag="{Binding Path=LookUpID}" Height="23" Click="hyperlinkButton1_Click"  Name="hyperlinkButton1" Width="100" />
        </DataTemplate>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White" Width="450" >
        <StackPanel HorizontalAlignment="Left" Name="stackPanel1" VerticalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" >
            <ListBox VerticalAlignment="Top" x:Name="lstMenu" Width="120" ItemsSource="{Binding Path=lstLookUp}" ItemTemplate="{StaticResource CompetencyLevelTemplate}">
            </ListBox>
        </StackPanel>
        <StackPanel HorizontalAlignment="Left" Margin="120,12,0,0" Name="stackPanel2" VerticalAlignment="Top">
            <controls:DatePicker Name="datePicker1" Height="56" Width="115" SelectedDateChanged="datePicker1_SelectedDateChanged" />
            <StackPanel  Name="stackPanel50" Orientation="Horizontal" Width="320" VerticalAlignment="Top">
                <my:FileUpload Height="100" x:Name="fileFarman" Width="320" />
            </StackPanel>
            <StackPanel  Name="stackPanel4" Orientation="Horizontal"  Width="320" Visibility="Collapsed">
                <my:FileUpload Height="100" x:Name="fileLog" Width="320" />
            </StackPanel>
            <StackPanel  Name="stackPanel5" Orientation="Horizontal" Width="320" VerticalAlignment="Top" Visibility="Collapsed">
                <my:FileUpload Height="100" x:Name="fileHeader" Width="320" />
            </StackPanel>

        </StackPanel>

        <Button Content="Save" Height="23" HorizontalAlignment="Left" Margin="264,374,0,0" Name="button4" VerticalAlignment="Top" Width="75" d:LayoutOverrides="HorizontalAlignment" Click="button4_Click" />
        <Button Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="345,374,0,0" Name="button5" VerticalAlignment="Top" Width="75" d:LayoutOverrides="HorizontalAlignment" Click="button5_Click" />
    </Grid>
</UserControl>
